{% extends '::base.html.twig' %} 
{% block module_name %}Usuarios{% endblock %}
{% block title %}Usuarios :: Nuevo{% endblock %}

{% block body %}
<h2>Usuarios :: Nuevo</h2>
<div class="widget_inside records_list">
    <div class="form">
        <form action="{{ path('usuarios_create') }}" method="post" {{ form_enctype(form) }} id="formID">
            {{ form_widget(form) }}
            <div class="clearfix">
                <label>Contrase&ntilde;a</label>
                <div class="input">
                    <input type="text" name="password" value="" required />
                </div>
            </div>
            <div class="clearfix">
                <label>Fecha de Salida</label>
                <div class="input">
                    <select name="role">
                        <option value="ROLE_USER">Usuario Normal</option>
                        <option value="ROLE_ADMIN">Usuario Administrador</option>
                    </select>
                </div>
            </div>
            <div class="clearfix grey-highlight">
                <div class="input no-label">
                    <button type="submit" class="button blue">Guardar</button>
                                            <a href="{{ path('usuarios') }}" class="button">Regresar a la Lista</a>
                </div>
            </div>
        </form>
        <script>
        $(document).ready(function(){
            $("#formID").validationEngine('attach');
           });
        </script>
    </div>
</div>
{% endblock %}